package a.f;

import a.d.w;

import java.awt.*;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class qb
  implements dc
{
  Map a = new HashMap();
  Map b = new HashMap();
  Map c = new HashMap();
  public static boolean d;
  
  public void a(Object paramObject, zc paramzc)
  {
    this.a.put(paramObject, paramzc);
  }
  
  public void a(Object paramObject, zb paramzb)
  {
    this.b.put(paramObject, paramzb);
  }
  
  public zb e(Object paramObject)
  {
    return (zb)this.b.get(paramObject);
  }
  
  public zc d(Object paramObject)
  {
    return (zc)this.a.get(paramObject);
  }
  
  public void a(Object paramObject, xc[] paramArrayOfxc)
  {
    this.c.put(paramObject, paramArrayOfxc);
  }
  
  public xc[] f(Object paramObject)
  {
    return (xc[])this.c.get(paramObject);
  }
  
  public void a(Object paramObject, wb[] paramArrayOfwb)
  {
    this.c.put(paramObject, paramArrayOfwb);
  }
  
  public wb[] g(Object paramObject)
  {
    return (wb[])this.c.get(paramObject);
  }
  
  public Rectangle d()
  {
    boolean bool = o.eg;
    int j = o.dg;
    double d1 = d2 = 1.7976931348623157E+308D;
    double d3 = d4 = -1.797693134862316E+308D;
    Iterator localIterator = this.a.values().iterator();
    Object localObject;
    do
    {
      do
      {
        if (!localIterator.hasNext()) {
          break;
        }
        localObject = (zc)localIterator.next();
        double d5 = ((zc)localObject).a();
        double d6 = ((zc)localObject).b();
        double d7 = ((zc)localObject).c();
        double d8 = ((zc)localObject).d();
        d1 = Math.min(d5, d1);
        d2 = Math.min(d6, d2);
        d3 = Math.max(d5 + d7, d3);
        d4 = Math.max(d6 + d8, d4);
        if (bool) {
          break label179;
        }
        if (j != 0) {
          break label172;
        }
      } while (j == 0);
    } while (bool);
    localIterator = this.b.values().iterator();
    label172:
    label179:
    label307:
    do
    {
      for (;;)
      {
        if (localIterator.hasNext())
        {
          localObject = (zb)localIterator.next();
          int i = 0;
          if (i < ((zb)localObject).a())
          {
            w localw = ((zb)localObject).a(i);
            d1 = Math.min(localw.a(), d1);
            d2 = Math.min(localw.b(), d2);
            d3 = Math.max(localw.a(), d3);
            d4 = Math.max(localw.b(), d4);
            i++;
            if (bool) {
              break label307;
            }
            if ((!bool) && (j != 0)) {
              break label364;
            }
            if (bool) {
              break label312;
            }
            if ((j == 0) && (j == 0)) {
              break;
            }
          }
        }
      }
      if (bool) {
        break label362;
      }
    } while (bool);
    if (d1 == 1.7976931348623157E+308D)
    {
      label312:
      if (bool) {
        break label362;
      }
      if (d2 == 1.7976931348623157E+308D) {
        return new Rectangle(0, 0, -1, -1);
      }
    }
    d1 = Math.floor(d1);
    double d2 = Math.floor(d2);
    d3 = Math.ceil(d3);
    label362:
    double d4 = Math.ceil(d4);
    label364:
    return new Rectangle((int)d1, (int)d2, (int)(d3 - d1), (int)(d4 - d2));
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.qb

 * JD-Core Version:    0.7.0.1

 */